package com.yf.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

public class CustomReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		String data = "收到自定义广播" + intent.getStringExtra("subject");
		Log.v("Broadcast", data);
		Toast.makeText(context, data, Toast.LENGTH_SHORT).show();
	}

}
